<extend name="Public:base" />

<block name="content">

    <form action="{:U('CommentManage/updatename')}" method="post" id="formData">
        <input class="btn btn-primary radius5 btn-sm marginT10 marginB10" type="button" onclick="formCheck()"  value="修改"/>
        <a class="btn btn-primary radius5 btn-sm marginT10 marginB10" href="{:U('CommentManage/commentList')}">返回</a>


    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover">

            <thead>
            <tr>
                <th>评分类型</th>
                <th>上门速度</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="ba" key="k">
                <tr>
                    <td>{$ba['name']}:</td>
                    <td><input name="re[]" value="{$ba['c_name']}" type="text"><input name="id[]" type="hidden" value="{$ba['id']}"></td>

                </tr>
            </volist>
            <tr>
                <td colspan="20" class="page">{$page}</td>
            </tr>
            </tbody>
        </table>
    </div>
    </form>
</block>
<block name="css">
</block>
<block name="javascript">
    <script>
        function formCheck(){
            $('#formData').ajaxSubmit(function(data){
                console.log(data)
                $.jbox.tip("修改成功！", 'loading');
                window.setTimeout(function () {window.location.href="{:U('CommentManage/commentList')}"; }, 500);
                return false;
            })
        }
    </script>
</block>